<?php /* Smarty version Smarty-3.1.12, created on 2013-05-11 21:02:22
         compiled from "D:\wamp\www\acps_new\templates\tasks\include\phorum.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1867950bfad70eb70a5-76261985%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '8a70e5734ef2590e4840ededd8fe0306005795af' => 
    array (
      0 => 'D:\\wamp\\www\\acps_new\\templates\\tasks\\include\\phorum.tpl',
      1 => 1368041724,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1867950bfad70eb70a5-76261985',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.12',
  'unifunc' => 'content_50bfad710c93b0_48140969',
  'variables' => 
  array (
    'data' => 0,
    'counter' => 0,
    'bgClass' => 0,
    'post' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_50bfad710c93b0_48140969')) {function content_50bfad710c93b0_48140969($_smarty_tpl) {?><div style="height: auto; width: auto">
  <table class="phorum">
    <?php $_smarty_tpl->tpl_vars['counter'] = new Smarty_variable(2, null, 0);?>
    <?php  $_smarty_tpl->tpl_vars['post'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['post']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['data']->value['task_data']['phorum']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['post']->key => $_smarty_tpl->tpl_vars['post']->value){
$_smarty_tpl->tpl_vars['post']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['post']->key;
?>
      <?php if ($_smarty_tpl->tpl_vars['counter']->value==2){?>
        <?php $_smarty_tpl->tpl_vars['bgClass'] = new Smarty_variable('bgDark', null, 0);?>
      <?php }else{ ?>
        <?php $_smarty_tpl->tpl_vars['bgClass'] = new Smarty_variable('bgLight', null, 0);?>
      <?php }?>
      <tr class="phorum-post <?php echo $_smarty_tpl->tpl_vars['bgClass']->value;?>
" id="<?php echo $_smarty_tpl->tpl_vars['post']->value['task_phorum_id'];?>
">
        <?php if ($_smarty_tpl->tpl_vars['counter']->value==1){?>
          <?php $_smarty_tpl->tpl_vars['counter'] = new Smarty_variable(2, null, 0);?>
        <?php }else{ ?>
          <?php $_smarty_tpl->tpl_vars['counter'] = new Smarty_variable(1, null, 0);?>
        <?php }?>
        <td style="width: 80px"><?php echo $_smarty_tpl->tpl_vars['post']->value['user_data']['name'];?>
 <?php echo $_smarty_tpl->tpl_vars['post']->value['user_data']['surname'];?>
</td>
        <td style="width: 120px"><?php echo $_smarty_tpl->tpl_vars['post']->value['when'];?>
</td>
        <td style="border-right: 0px solid white; width: auto">
          <?php echo $_smarty_tpl->tpl_vars['post']->value['text'];?>

        </td>
        <td style="width: 45px; border-left: 0px solid white;">
          <?php if ($_SESSION['user']['user_id']==$_smarty_tpl->tpl_vars['post']->value['user_id']||$_SESSION['user']['profile']['userlevel']==@USER_TYPE_ADMIN){?>
            <a class="baseLink" href="javascript: editPost(<?php echo $_smarty_tpl->tpl_vars['post']->value['task_phorum_id'];?>
)"><img src="<?php echo @PATH_TO_IMAGES;?>
edit.png" height="20" width="20" /></a>
            <a class="baseLink" href="javascript: deletePost(<?php echo $_smarty_tpl->tpl_vars['post']->value['task_phorum_id'];?>
)"><img src="<?php echo @PATH_TO_IMAGES;?>
delete.png" height="20" width="20" /></a>
            <?php }?>
        </td>
        <td style="text-align: center; vertical-align: middle">
          <?php if ($_SESSION['user']['profile']['userlevel']!=@USER_TYPE_CLIENT){?>
            <input id="post_to_desc_<?php echo $_smarty_tpl->tpl_vars['post']->value['task_phorum_id'];?>
" value="<?php echo $_smarty_tpl->tpl_vars['post']->value['text'];?>
" type="hidden" />  
            <input class="post_to_desc" value="<?php echo $_smarty_tpl->tpl_vars['post']->value['task_phorum_id'];?>
" type="checkbox" />
          <?php }?>
        </td>
      </tr>
    <?php } ?>
  </table>
</div><?php }} ?>